package com.syl.starter.itools.base.constants;

import java.io.File;

/**
 * @author syl
 * @create 2018-06-27 14:59
 **/
public class BaseConstant {
    /**
     * UTF-8编码
     */
    public static final String UTF8 = "UTF-8";

    /**
     * 下载时文件名编码
     */
    public static final String ISO8859_1 = "ISO8859-1";

    /**
     * 压缩文件后缀
     */
    public static final String ZIP_SUFFIX_NAME = ".zip";
    /**
     * 默认图片类型
     */
    public static final String DEFAULT_IMAGE_TYPE = "jpeg";

    /**
     * 空字符串
     */
    public static final String EMPTY_STRING = "";
    /**
     * 空格
     */
    public static final String BLANK_STRING = " ";

    /**
     * 通配符
     */
    public static final String WILDCARD = "*";

    /**
     * redis 锁使用的key
     */
    public static final String REDIS_LOCK_KEY = "lock";

    /**
     * 换行符号
     */
    public static final String LINE_BREAK = "\n";
    /**
     * 点
     */
    public static final String DOT = ".";
    /**
     * 点 replace 和 split 时需使用
     */
    public static final String DOT_ESCAPE = "\\.";
    /**
     * replace 时的文件分隔符
     */
    public static final String REPLACE_FILE_SEPARATOR = File.separator + File.separator;
    /**
     * 统一多字符串间的分隔符
     */
    public static final String MORE_SEPARATOR = ",";
    /**
     * 统一各key的分割符
     */
    public static final String KEY_SEPARATOR = "_";
    /**
     * - 分隔符
     */
    public static final String BAR_SEPARATOR = "-";
    /**
     * 统一url的分隔符
     */
    public static final String URL_SEPARATOR = "/";
    /**
     * 统一等号
     */
    public static final String EQUAL_SIGN = "=";

}
